package com.mo.service;

import com.github.pagehelper.PageInfo;
import com.mo.model.TActivity;
import com.mo.query.ActivityQuery;

import java.util.List;

/**
 * @author mo
 * version
 */
public interface ActivityService {
    PageInfo<TActivity> getUserByPage(Integer current, ActivityQuery activityQuery);

    int saveActivity(ActivityQuery activityQuery);

    TActivity getActivityById(Integer id);

    int updateActivity(ActivityQuery activityQuery);

    int deleteActivityById(Integer id);

    int batchDelActivityByIds(List<String> idList);

    List<TActivity> getOngoingActivity();
}
